package com.ng.common.result;

/**
 * 分页查询分页参数
 *
 * @author Ng
 * @date 2024/03/07
 */
public class PageParam {

    // 当前页码默认值
    public static final Long DEFAULT_PAGE_CURRENT = 1L;
    // 每页记录数默认值
    public static final Long DEFAULT_PAGE_SIZE = 20L;

    private Long page = DEFAULT_PAGE_CURRENT;
    private Long pageSize = DEFAULT_PAGE_SIZE;

    public PageParam(){}

    public PageParam(long pageNo, long pageSize){
        this.page = pageNo;
        this.pageSize = pageSize;
    }

    public long getPageNo() {
        return page;
    }

    public void setPageNo(long pageNo) {
        this.page = pageNo;
    }

    public long getPageSize() {
        return pageSize;
    }

    public void setPageSize(long pageSize) {
        this.pageSize = pageSize;
    }
}
